package com.design.mediator.traffic2;

// 西部地区航班调度中心
class WesternFlightCenter implements FlightMediator {
    @Override
    public void requestLandingPermission(Flight flight) {
        System.out.println("Landing permission granted for flight " + flight.getFlightNumber() + " in Western region.");
    }

    @Override
    public void notifyDeparture(Flight flight) {
        System.out.println("Flight " + flight.getFlightNumber() + " has departed from Western region.");
    }
}

// 东部地区航班调度中心
class EasternFlightCenter implements FlightMediator {
    @Override
    public void requestLandingPermission(Flight flight) {
        System.out.println("Landing permission granted for flight " + flight.getFlightNumber() + " in Eastern region.");
    }

    @Override
    public void notifyDeparture(Flight flight) {
        System.out.println("Flight " + flight.getFlightNumber() + " has departed from Eastern region.");
    }
}
